package com.qinggeng.project.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.web.domain.BaseEntity;

/**
 * 广告管理对象 adver
 * 
 * @author qinggeng
 * @date 2020-02-12
 */
@Data
public class SysAdver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long adverId;

    /** 广告位置 */
    private Long positionId;

    @Excel(name = "广告位置")
    private String positionName;

    /** 形式 */
    @Excel(name = "形式")
    private Integer mediaType;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 所属分类id */
    @Excel(name = "所属分类id")
    private Long classifyId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String adverImg;

    /** 跳转地址 */
    @Excel(name = "跳转地址")
    private String adverHref;

    /** 跳转类型(1.外部链接2.内部链接 */
    private String adverType;

    @Excel(name = "跳转类型")
    private String adverTypeName;

    @Excel(name = "商品id")
    private Long goodsId;

    @Excel(name = "商品顺序")
    private String advOrder;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public Long getAdverId() {
        return adverId;
    }

    public void setAdverId(Long adverId) {
        this.adverId = adverId;
    }

    public Long getPositionId() {
        return positionId;
    }

    public void setPositionId(Long positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public Integer getMediaType() {
        return mediaType;
    }

    public void setMediaType(Integer mediaType) {
        this.mediaType = mediaType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAdverImg() {
        return adverImg;
    }

    public void setAdverImg(String adverImg) {
        this.adverImg = adverImg;
    }

    public String getAdverHref() {
        return adverHref;
    }

    public void setAdverHref(String adverHref) {
        this.adverHref = adverHref;
    }

    public String getAdverType() {
        return adverType;
    }

    public void setAdverType(String adverType) {
        this.adverType = adverType;
    }

    public String getAdverTypeName() {
        return adverTypeName;
    }

    public void setAdverTypeName(String adverTypeName) {
        this.adverTypeName = adverTypeName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adverId", getAdverId())
            .append("positionId", getPositionId())
            .append("mediaType", getMediaType())
            .append("title", getTitle())
            .append("adverImg", getAdverImg())
            .append("adverHref", getAdverHref())
            .append("adverType", getAdverType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
